home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2003 May / cmycha200305.iso / MutantStorm / setup_mutantstorm_demo.exe / {app} / script / chunk-1.lua < prev    next >
Text File  |  2002-09-06  |  1KB  |  39 lines

  1.  
  2. -- leave me
  3.     local actor = ACTOR_preload()
  4. -- leave me
  5.  
  6.     actor[cp_actor_name]        = "chunk-1"
  7.     actor[cp_model_dir]            = "beasties"
  8.     actor[cp_model_name]        = "chunk-1"
  9.  
  10.     actor[cp_in_beastie_count]        = 0
  11.  
  12.     actor[cp_actor_type]            = cat_block
  13.     actor[cp_these_collide_with_me]    = cat_player + cat_bullet + cat_crystal + cat_webblob + cat_geopus + cat_mergeblob
  14.  
  15.     actor[cp_health_regain]            = 0.2
  16.     actor[cp_health_percent]        = 2000.0
  17.     actor[cp_health_type]            = health_chunk_regain
  18.     actor[cp_health_byebye_percent]    = 50.0
  19.  
  20.     actor[cp_launch_hue_shift] = color
  21.  
  22.     actor[cp_level_end_score]        = 1000
  23.  
  24. -- leave me
  25.     c_preload_model( actor )
  26. -- leave me
  27.  
  28.     c_set_random_anim( "throb", 50.0, 150.0, 0.0, 0.0 )
  29.  
  30.     c_add_particle_to_anim( "emerge", "partbone", "ring_emerge" )
  31.  
  32.     c_add_sound_to_event( "hit_active_bone", "chunk_hit" )
  33.     c_add_sound_to_anim( "emerge", "chunk_emerge" )
  34.  
  35.     local seq = { 0.0, 0.1, 0.2, 0.4 }
  36.     c_set_use_explosion_for( "bye_bye", "chunk_red", exp_no_align, 25.0, 0.0, 1500.0, 1800.0, seq )
  37.     c_set_use_explosion_for( "bye_bye", "chunk-flash", exp_no_align, 0.0, 0.5, 3500.0, 3500.0, {0.0} )
  38.     c_add_sound_to_explosion( "chunk_red", "explode", "chunk_explode" )
  39.